package com.gs.zhss.eshop.auth.dao.impl;

import com.gs.zhss.eshop.auth.dao.PriorityDAO;
import com.gs.zhss.eshop.auth.domain.PriorityDO;
import com.gs.zhss.eshop.auth.mapper.PriorityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: gs
 * @Date: 2023/12/24 15:54
 * @Version: v1.0.0
 * @Description: TODO
 **/
@Repository
public class PriorityDAOImpl implements PriorityDAO {

    /**
     * 权限管理模块的mapper组件
     */
    @Autowired
    private PriorityMapper priorityMapper;

    /**
     * 查询根权限
     * @return 根权限集合
     */
    public List<PriorityDO> listRootPriorities() {
        return priorityMapper.listRootPriorities();
    }

}

